home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- sprite(23).member = "buttonDown"
- end
-
- on mouseUp
- global GcurrentImage, currentDirectory, format, colorDirectory, decision, imageResolution, baseDirectory
- member(11).text = "Please Wait"
- updateStage()
- theDoc = new(xtra("PrintOMatic"))
- if objectp(theDoc) then
- w = member(GcurrentImage, colorDirectory & " " & currentDirectory).width / imageResolution.float * 72
- h = member(GcurrentImage, colorDirectory & " " & currentDirectory).height / imageResolution.float * 72
- if w > 611 then
- hmarg = 20
- vmarg = 20
- else
- hmarg = (611 - w) / 2
- end if
- if h > 791 then
- vmarg = 20
- hmarg = 20
- else
- vmarg = (791 - h) / 2
- end if
- setMargins(theDoc, rect(hmarg, vmarg, hmarg, vmarg))
- append(theDoc, member(GcurrentImage, colorDirectory & " " & currentDirectory), 0)
- if doJobSetup(theDoc) then
- print(theDoc)
- end if
- end if
- theDoc = 0
- unload()
- member(11).text = "Print"
- sprite(23).member = "buttonUp"
- end
-